﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MvcApplication2.Models;
using MvcApplication2.Models.Form;
namespace MvcApplication2.Delegale.Interface
{
    public interface ICategoryDelegate
    {
        IQueryable<Category> GetCategorys();
        IList<Category> ListCategory();
        Category GetCategoryByID(int CategoryId);
        Category InsertCategory(Category Category);
        bool DeleteCategory(int CategoryID);
        Category UpdateCategory(Category Category);
        Category ConvetToEntityCategory(CategoryForm form);
        bool CheckNameCategory(string name);
    }
}